#!/bin/bash
VERSION=$(python -c "import navdeploy; print(navdeploy.__version__)")

# 创建带签名的Tag
git tag -s "v${VERSION}" -m "Release v${VERSION}"
git push origin "v${VERSION}"

# 生成源码包
python setup.py sdist

# 上传到码云仓库
twine upload --repository gitee dist/*